package com.qianguo.shop.base;

import android.app.Activity;
import android.content.Context;
import android.support.annotation.NonNull;
import android.view.View;

/**
 * 页面公共方法
 *
 * @author GUXIA318
 * @date 2015-09-18 11:01
 */
public interface IBaseMethod {

    void closeKeyboard(@NonNull Activity context);

    void showSnackBar(@NonNull Activity context, String content);

    void showSnackBar(@NonNull Activity context, String content, String actionText, View.OnClickListener listener);

    void showToast(@NonNull Context context, String content);

    void showToast(@NonNull Context context, String content, int gravity);

    void showLoadingDialog(@NonNull Context context);

    void closeLoadingDialog();

    void showDialog(@NonNull Context context, String title, String warningMsg, View.OnClickListener confirmClickListener,
                    View.OnClickListener cancelClickListener);

    void showDialog(@NonNull Context context, String title, String warningMsg, String confirm, String cancel,
                    View.OnClickListener confirmClickListener, View.OnClickListener cancelClickListener);

    void showWarningDialog(@NonNull Context context, String title, String warningMsg, View.OnClickListener onOkBtnClickListener);

    void closeDialog();
}
